how an aircraft work